1bashThis demonstrates the use of the special variable $? to check the exit status of the last executed command.$?bash internalbash builtin variables$? (exit status)